import { useNavigate } from 'react-router-dom'
import CheckList from '@/library/gallery/components/CheckList'
import { DemoBlock } from '@/library/widgets/DemoBlock'

const DemoUIHome: React.FC<unknown> = () => {
  const navigate = useNavigate()
  return (
    <DemoBlock title="hooks分发">
      <CheckList isLink>
        <CheckList.Item onClick={() => navigate('./useThrottle')}>useThrottle</CheckList.Item>
      </CheckList>
    </DemoBlock>
  )
}

export default DemoUIHome
